package algorithm.model.vo;

import java.util.Date;

public class Answer {

	private String id;
	private int num;
	private Date startTime;
	private Date endTime;
	private String subAnswer;
	private String fileUp;
	
	public Answer(String id, int num, Date startTime, Date endTime,
			String subAnswer, String fileUp) {
		this.id = id;
		this.num = num;
		this.startTime = startTime;
		this.endTime = endTime;
		this.subAnswer = subAnswer;
		this.fileUp = fileUp;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getSubAnswer() {
		return subAnswer;
	}

	public void setSubAnswer(String subAnswer) {
		this.subAnswer = subAnswer;
	}

	public String getFileUp() {
		return fileUp;
	}

	public void setFileUp(String fileUp) {
		this.fileUp = fileUp;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Answer [id=");
		builder.append(id);
		builder.append(", num=");
		builder.append(num);
		builder.append(", startTime=");
		builder.append(startTime);
		builder.append(", endTime=");
		builder.append(endTime);
		builder.append(", subAnswer=");
		builder.append(subAnswer);
		builder.append(", fileUp=");
		builder.append(fileUp);
		builder.append("]");
		return builder.toString();
	}	

}
